package com.iwhalecloud.springcloud.gateway.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.reactive.result.view.Rendering;

/**
 * Created by lib.
 * Date: 2019-01-18
 */
@Controller
@RequestMapping(value = "/")
public class IndexController {

    //首页重定向
    @RequestMapping(value = "/")
    public Object index(){
        return Rendering.redirectTo("/web/index.html").build();
    }
}
